﻿namespace Douyu.SDK.Messages
{
    /// <summary>
    /// 领取在线鱼丸爆击消息
    /// </summary>
    public class OnlineGiftMessage : BaseMessage
    {
        public OnlineGiftMessage() : base(MessageType.onlinegift, MsgType.ServerToClient)
        {
        }

        public OnlineGiftMessage(BaseMessage msg) :base(msg)
        {
        }

        /// <summary>
        /// 房间ID
        /// </summary>
        public int rid
        {
            get { return GetValue(nameof(rid), 0); }
        }

        /// <summary>
        /// 分组号
        /// </summary>
        public int gid
        {
            get { return GetValue(nameof(gid), 0); }
        }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int uid
        {
            get { return GetValue(nameof(uid), 0); }
        }

        /// <summary>
        /// 鱼丸数
        /// </summary>
        public int sil
        {
            get { return GetValue(nameof(sil), 0); }
        }

        /// <summary>
        /// 鱼丸数
        /// </summary>
        public int @if
        {
            get { return GetValue("if", 0); }
        }

        /// <summary>
        /// 客户端类型
        /// </summary>
        public int ct
        {
            get { return GetValue(nameof(ct), 0); }
        }


        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nn
        {
            get { return GetValue(nameof(nn), ""); }
        }

    }
}
